package main

import (
	"fmt"
	"math"
)

// 整数环绕，和%b的练习
func main() {
	var blue uint8 = 255
	fmt.Printf("%08b\n", blue) // 11111111

	fmt.Printf("%016b\n", blue) // 0000000011111111
	blue++                      // 变成了0
	fmt.Printf("%08b\n", blue)  // 00000000
	fmt.Printf("%016b\n", blue) // 0000000000000000

	fmt.Println(math.MinInt8)
	fmt.Println(math.MinInt16)
	fmt.Println(math.MinInt32)
	fmt.Println(math.MinInt64)

}
